package nibbles.javaeye;

import javax.swing.JFrame;

/* 
 ������ʾ 

 */
class MyFrame extends JFrame {
	public MyFrame() {
		setSize(width, height);
		setTitle("snake");
		MyPanel p = new MyPanel();
		add(p);
		setLocation(200, 180);
		// System.out.println(getBackground());
	}

	private int width = 500;
	private int height = 430;
}

/*
 * ���Գ���
 */
public class Snake {
	public static void main(String[] args) {
		MyFrame frame = new MyFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
	}
}
